package com.yawn.serviceinvoker.controller;

import com.yawn.serviceinvoker.feign.ProvidedService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author yawn
 * @date 2018-05-06 14:21
 */
@RestController
public class InvokerController {

    @Autowired
    private ProvidedService providedService;

    @GetMapping("/invoke")
    public Object test1() {
        String test1 = providedService.test1();
        return test1;
    }

    @GetMapping("/invoke1")
    public String test2() {
        return providedService.test1();
    }
}
